import request from '@/utils/request'

export function getAllClass() {
  return request.get('/classification/allClass')
}
export function postBanner(data) {
  return request.post('/admin/banner', data)
}
export function getBanner() {
  return request.get('/admin/banner')
}
export function putBanner(data) {
  return request.put('/admin/banner', data)
}
export function getClass() {
  return request.get('/admin/public/class')
}
export function deleteClass(data) {
  return request.delete('/admin/public/class', { data })
}
export function postClass(data) {
  return request.post('/admin/public/class', data)
}
